package com.example.es.dto;

import jakarta.validation.constraints.Min;

public class PromotionSearchRequest {
    private String name;
    private String type;
    
    @Min(value = 0, message = "最低折扣率不能小于0")
    private Double minDiscountRate;
    
    private String tags;
    private Integer page = 0;
    private Integer size = 10;

    // 构造函数
    public PromotionSearchRequest() {}

    // Getters and Setters
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getType() { return type; }
    public void setType(String type) { this.type = type; }

    public Double getMinDiscountRate() { return minDiscountRate; }
    public void setMinDiscountRate(Double minDiscountRate) { this.minDiscountRate = minDiscountRate; }

    public String getTags() { return tags; }
    public void setTags(String tags) { this.tags = tags; }

    public Integer getPage() { return page; }
    public void setPage(Integer page) { this.page = page; }

    public Integer getSize() { return size; }
    public void setSize(Integer size) { this.size = size; }
}